package cn.tedu.smartmarketing.business.mapper;

import cn.tedu.smartmarketing.admin.pojo.entity.Checks;
import cn.tedu.smartmarketing.business.pojo.dto.BusinessQuery;
import cn.tedu.smartmarketing.business.pojo.dto.commodityQuery;
import cn.tedu.smartmarketing.business.pojo.entity.Activity;
import cn.tedu.smartmarketing.business.pojo.entity.Business;
import cn.tedu.smartmarketing.business.pojo.entity.commodity;
import cn.tedu.smartmarketing.business.pojo.vo.BusinessVO;
import cn.tedu.smartmarketing.business.pojo.vo.CommentVO;
import cn.tedu.smartmarketing.business.pojo.vo.commodityVo;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface BusinessMapper {
    void createActivity(Activity activity);
    void insert(Business business);

    BusinessVO select(Integer id);

    List<BusinessVO> list(BusinessQuery businessQuery);
    List<CommentVO> listComment(Integer productId);
    void applyChecks(Checks checks);

    void insert2(commodity commodity);

    List<commodityVo> queryProduct(commodityQuery commodityQuery);
}
